package refactor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 记录各个系统模块设备的相关信息
 * </p>
 *
 * @author 杨健
 * @since 2019-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Device implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 主键
     */
    @TableField("mod_id")
    private Integer modId;

    @TableField("facilities_id")
    private Integer facilitiesId;

    /**
     * 设备编号
     */
    @TableField("code")
    private String code;

    /**
     * 设备名称
     */
    @TableField("name")
    private String name;

    /**
     * 设备等级
     */
    @TableField("level")
    private Integer level;

    /**
     * 上线时间
     */
    @TableField("online")
    private Long online;

    /**
     * 通信制式
     */
    @TableField("standard")
    private String standard;

    @TableField("ending_time")
    private Long endingTime;

    @TableField(value = "`internet_device_id`")
    private String internetDeviceId;

    @TableField(value = "`addr_id`")
    private String addrId;


}
